﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class CmsArticleVideoBll
    {
        public int Add(CmsArticleVideoModel model)
        {
            return CmsArticleVideoFactory.create().Add(model);
        }
        public bool Update(CmsArticleVideoModel model)
        {
            return CmsArticleVideoFactory.create().Update(model);
        }
        public CmsArticleVideoModel GetVideoModel(int vid)
        {
            return CmsArticleVideoFactory.create().GetVideoModel(vid);
        }
        /// <summary>
        /// 文章视频列表
        /// </summary>
        /// <param name="q">q.articleId 文章ID</param>
        /// <returns></returns>
        public IList GetVideoList(CmsArticleVideoModel q)
        {
            return CmsArticleVideoFactory.create().GetVideoList(q);
        }

        public bool Delete(int vid)
        {
            return CmsArticleVideoFactory.create().Delete(vid);
        }
    }
}
